/**
 * 
 */
package com.ctg.payroll2.util.xlsImport;

import org.apache.commons.lang.builder.ToStringBuilder;

/**
 * 表头对应关系类
 * 
 * @author
 * 
 */
class HeadMapping {
	// 所在列
	private int index;
	// 列名
	private String column;
	// 属性名
	private String property;
	// 属性类型
	private String type;
	// 默认值
	private String defaultValue;
	// 强制
	private boolean enforce;

	// @ TODO 最大，最小，正则，输入格式，强制，唯一

	public HeadMapping() {
	}

	public HeadMapping(String column, String property) {
		this.column = column;
		this.property = property;
	}

	public int getIndex() {
		return index;
	}

	public void setIndex(int index) {
		this.index = index;
	}

	public String getColumn() {
		return column;
	}

	public void setColumn(String column) {
		this.column = column;
	}

	public String getProperty() {
		return property;
	}

	public void setProperty(String property) {
		this.property = property;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getDefaultValue() {
		return defaultValue;
	}

	public void setDefaultValue(String defaultValue) {
		this.defaultValue = defaultValue;
	}

	public boolean isEnforce() {
		return enforce;
	}

	public void setEnforce(boolean enforce) {
		this.enforce = enforce;
	}

	public String toString() {
		return new ToStringBuilder(this).append("column", this.column).append(
				"property", this.property).append("index", index).append(
				"type", type).append("defaultValue", defaultValue).append(
				"enforce", enforce).toString();
	}
}
